<template>
  <div>
    <el-drawer title="导入详情" v-model="visible" :size="1000">
      <template #header>
        <div class="flex items-center title">
          <div class="w-[5px] h-[5px] rounded-[50%] bg-[#3721FF] mr-[10px] circle"></div>
          <div class="tits">导入详情</div>
        </div>
      </template>
      <div class="w-full h-[1px] bg-[#EFEFEF] line"></div>
      <div class="pt-[30px]">
        <ContentWrap :show-border="false">
          <SearchBox
            :queryForm="searchList"
            :showExpland="false"
            :show-export="false"
            queryBtnText="搜索"
            @query="handleSearchQuery"
          />
        </ContentWrap>
      </div>
    </el-drawer>
  </div>
</template>

<script setup lang="ts">
import type { TradeOrderQueryVO } from '@/api/mall/trade/order'
const searchList: TradeOrderQueryVO[] = [
  {
    label: '创建者',
    code: 'orderNo',
    type: 'input'
  },

  {
    label: '创建时间',
    code: 'orderTime',
    type: 'dateRange'
  }
]
const handleSearchQuery = (val) => {
  /***
   * 搜索框查询条件，目前考虑在查询时 queryParams = {...val,pageNo:1,pageSize:10}
   * */
  console.log(val, 'handleSearchQuery')
}
const form = reactive({
  remark: '',
  id: ''
})

const visible = ref(false)

/**
 * 提交备注
 */
const onSubmit = () => {
  console.log('submit!')
}

const show = () => {
  visible.value = true
}

const hide = () => {
  visible.value = false
}

defineExpose({
  show,
  hide
})
</script>

<style lang="scss" scoped>
:deep(.el-drawer__header) {
  margin-bottom: 0px;
}
:deep(.el-select__wrapper) {
  height: 40px !important;
}
:deep(.el-input__wrapper) {
  height: 40px !important;
}
</style>
